package com.yunji.cabinet.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yunji.common.annotation.Excel;
import com.yunji.common.model.cache.ProductAttrCacheDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2025/3/14 11:12
 * @description : TODO
 **/
@Data
public class ContainerProductDetailVO {
    @Excel(name = "商品ID", width = 15)
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("sku")
    private String sku;

    @ApiModelProperty("商品类型")
    private Integer productType;

    @ApiModelProperty("商品类型名称")
    private String productTypeName;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品描述")
    private String subTitle;

    @ApiModelProperty("销量")
    private Long sale;

    @ApiModelProperty("商品厚度")
    private BigDecimal productHeight;

    @ApiModelProperty("单位（数量）")
    private Integer unitAmount;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("商品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("单位ID")
    private Long unitId;

    @ApiModelProperty("单位名称")
    private String unitName;

    @ApiModelProperty("品牌ID")
    private Long brandId;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("排序")
    private Long sort;

    @ApiModelProperty("原价")
    private BigDecimal price;

    @ApiModelProperty("网点成本价")
    private BigDecimal costPrice;

    @ApiModelProperty("网点折扣价")
    private BigDecimal discountPrice;

    @ApiModelProperty("最大购买数量")
    private Integer maxSaleNums = 0;

    @ApiModelProperty("商品属性")
    private List<ProductAttrCacheDTO> attrValues;

}
